
package ${package};

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.enzo.utils.service.CommonServiceImpl;
import ${daopackage};
import ${name};
import ${servicepackage};


@Service
public class ${filename} extends CommonServiceImpl<${simplename}> implements ${servicename} {

	@Autowired
	private ${daoname} ${daoname?uncap_first};
	
	
	@Override
	public Integer save(${simplename} entity) throws Exception{
		return ${daoname?uncap_first}.save(entity);
	}
	
	@Override
	public ${simplename} selectByKey(Object key) throws Exception{
		return ${daoname?uncap_first}.selectByKey(key);
	}
	
	@Override
	public Integer deleteBykey(Object key) throws Exception{
		return ${daoname?uncap_first}.deleteBykey(key);
	}
	
	
	@Override
	public List<${simplename}> queryByCondition(${simplename} entity) throws Exception {
		return ${daoname?uncap_first}.queryByCondition(entity);
	}
}

